package com.wang.interview.designmode.adpter;

/**
 * @author: wang
 * @date: 2021/7/31 21:17
 * @description:
 */
public class Client extends AbstractAdapter {
    public static void main(String[] args) {
        AbstractAdapter electrictyAdapter = new ElectrictyAdapter();
        AbstractAdapter screenAdapter = new ScreenAdapter();
        AbstractAdapter usbAdapter = new UsbAdapter();

        electrictyAdapter.adaptElectricity(new Electricity());
        screenAdapter.adaptScreen(new Screen());
        usbAdapter.adaptUsb(new Usb());
    }
}
